package model;

import java.io.Serializable;
import javax.persistence.*;


/**
 * The persistent class for the CUST_COMPLAINT database table.
 * 
 */
@Entity
@Table(name="CUST_COMPLAINT")
public class CustComplaint implements Serializable {
	private static final long serialVersionUID = 1L;

	@EmbeddedId
	private CustComplaintPK id;

	//bi-directional many-to-one association to FactoryOrder
	@ManyToOne
	@JoinColumn(name="ORDER_ID")
	private FactoryOrder factoryOrder;

	//bi-directional many-to-one association to CustomerRepresentative
	@ManyToOne
	@JoinColumn(name="CUST_REP_ID")
	private CustomerRepresentative customerRepresentative;

	//bi-directional many-to-one association to Complaint
	@ManyToOne
	@JoinColumn(name="COMPLAINT_CD")
	private Complaint complaint;

	public CustComplaint() {
	}

	public CustComplaintPK getId() {
		return this.id;
	}

	public void setId(CustComplaintPK id) {
		this.id = id;
	}

	public FactoryOrder getFactoryOrder() {
		return this.factoryOrder;
	}

	public void setFactoryOrder(FactoryOrder factoryOrder) {
		this.factoryOrder = factoryOrder;
	}

	
	public CustomerRepresentative getCustomerRepresentative() {
		return this.customerRepresentative;
	}

	public void setCustomerRepresentative(CustomerRepresentative customerRepresentative) {
		this.customerRepresentative = customerRepresentative;
	}

	
	public Complaint getComplaint() {
		return this.complaint;
	}

	public void setComplaint(Complaint complaint) {
		this.complaint = complaint;
	}

	
}